from django.shortcuts import render,HttpResponse
from statudy_celery import tasks
# Create your views here.

def index(request):
    res = tasks.add.delay(3,4)
    #存task_id在seesion里
    return HttpResponse(res.task_id)


#在seesion里取task_id,或则通过django-celery-results
def result(request):
    return HttpResponse("查询结果")